<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org">
<head>

</head>

<body>

	<table id="useCaseTable" class="table table-striped table-bordered" th:fragment="uctable">
					<thead>
						<tr>
							<th colspan="7">
								<span th:if="${selection}" th:text="'Select use case to include with : '"></span>
								<span th:if="${selection == null}">Use Cases</span>
								
								<a  th:href="@{/editusecase(usecase=${useCase.id},active=9)}" th:if="${selection}" th:text="${useCase.name}">
									
								</a>
							</th>
						</tr>
						<tr>
							<th style="width: 5%" th:utext="#{sl}"></th>
							<th th:utext="#{name}"></th>
							<th th:utext="#{project}"></th>
							<th th:utext="#{created}"></th>
							<th th:utext="#{lastupdated}"></th>
							<th th:utext="#{owner}"></th>
							<th th:if="${selection}"> Action </th>
						</tr>
					</thead>
					<tbody>
						<tr th:each="uc , row : ${useCases}"
							th:with="c=${uc.createdDate.toDate()}, l=${uc.lastUpdatedDate.toDate()}">
							<td style="width: 5%"><a href="details.html"
								th:href="@{/editusecase(usecase=${uc.id})}"
								th:text="${row.count}">1</a></td>
							<td><a href="details.html"
								th:href="@{/editusecase(usecase=${uc.id})}" th:text="${uc.name}">1</a>

							</td>
							<td><a href="details.html"
								th:href="@{/editusecase(usecase=${uc.id})}"
								th:text="${uc.project.name}">1</a></td>
							<td><a href="details.html"
								th:href="@{/editusecase(usecase=${uc.id})}"
								th:text="${beans.pretty.format(c)}">1</a></td>
							<td><a href="details.html"
								th:href="@{/editusecase(usecase=${uc.id})}"
								th:text="${beans.pretty.format(l)}">1</a></td>
							<td><a th:href="@{/editusecase(usecase=${uc.id})}"
								th:text="${uc.createdBy.name}">1</a></td>
								
							<td th:if="${selection}"> 
								<a  th:href="@{/includeusecase(usecase=${useCase.id},incuc=${uc.id})}" th:if="${selection}" th:text="#{include}"
									class="btn btn-primary btn-small"
								>
									
								</a>
							
							 </td>	
						</tr>
					</tbody>
				</table>
</body>
</html>
